const fs = require("fs");
const path = require("path");

const writePath = path.resolve(__dirname, "../dist/2.txt");
fs.open(writePath, function (err, fd) {
  console.log(err, fd);
});
